WCPay\MultiCurrency\MultiCurrency D

Total Complexity 202
Dependencies 33
Dependents 25
Total lines 1,629
Lines of code 775
Logical lines of code 432
Comment lines 616
Methods 67
Properties 22

Methods 67

Method Rating Maintainability Complexity Lines of code
get_multi_currency_onboarding_simulation_variables()
A
49 9 31
update_selected_currency()
A
52 9 23
get_all_customer_currencies()
A
47 7 36
init()
S
45 6 40
update_single_currency_settings()
S
54 7 19
get_price()
S
56 7 16
get_cached_currencies()
S
53 6 23
init_hooks()
S
55 6 18
update_selected_currency_by_geolocation()
S
58 6 16
initialize_enabled_currencies()
S
49 5 31
init_settings_pages()
S
58 6 15
get_raw_conversion()
S
53 5 22
set_enabled_currencies()
S
55 5 19
add_order_meta_on_refund()
S
57 5 17
remove_currency_settings()
S
57 5 15
display_geolocation_currency_update_notice()
S
49 4 30
simulate_client_currency()
S
51 4 29
add_simulation_params_to_preview_urls()
S
53 3 33
is_multi_currency_settings_page()
S
66 5 9
maybe_add_cache_cookie()
S
70 5 5
get_account_available_currencies()
S
60 4 13
update_manual_rate_currencies_notice_option()
S
60 4 13
set_client_format_and_rounding_precision()
S
52 3 24
initialize_available_currencies()
S
57 3 17
set_new_customer_currency_meta()
S
69 4 6
add_woo_admin_notes()
S
65 4 9
maybe_update_customer_currencies_option()
S
61 3 13
check_store_currency_for_change()
S
61 3 13
update_settings()
S
63 3 11
get_stored_currency_code()
S
65 3 9
remove_woo_admin_notes()
S
72 3 5
get_single_currency_settings()
S
60 2 12
instance()
S
68 2 7
is_customer_currencies_data_valid()
S
78 2 3
enqueue_admin_scripts()
S
66 2 9
possible_simulation_activation()
S
68 2 8
validate_currency_code()
S
73 2 5
update_selected_currency_by_url()
S
70 2 6
remove_currencies_settings()
S
74 2 5
get_default_currency()
S
71 2 6
get_enabled_currencies()
S
71 2 6
get_available_currencies()
S
71 2 6
ceil_price()
S
71 2 6
get_selected_currency()
S
72 2 5
get_adjusted_price()
S
68 2 7
get_compatibility()
S
82 1 3
get_switcher_widget_markup()
S
65 1 9
log_and_throw_invalid_currency_exception()
S
71 1 5
is_initialized()
S
81 1 3
has_additional_currencies_enabled()
S
76 1 4
init_rest_api()
S
76 1 4
init_widgets()
S
75 1 4
get_apply_charm_only_to_products()
S
78 1 3
clear_cache()
S
77 1 4
is_simulation_enabled()
S
79 1 3
__construct()
S
63 1 10
get_storefront_integration()
S
82 1 3
register_admin_scripts()
S
64 1 10
set_default_currency()
S
75 1 4
recalculate_cart()
S
82 1 3
get_settings()
S
63 1 10
is_using_storefront_switcher()
S
78 1 3
is_using_auto_currency_switching()
S
78 1 3
get_frontend_currencies()
S
82 1 3
get_currency_switcher_widget()
S
82 1 3
get_frontend_prices()
S
82 1 3
get_store_currencies()
S
69 1 7